'use strict';
 const db = uniCloud.database();
exports.main = async (event, context) => {
  //event为客户端上传的参数
  let _id=event.user_id
  let p=event.phone
  let ad=event.address
  //返回数据给客户端
  let post_id=event.post_id;
  const collection = db.collection('users');

  let res=await collection.doc(_id).update({
	  address:ad,
	  phone:p
  });

  //返回数据给客户端
  return {"status":2}
};
